<template>
  <div>
    <el-link type="primary" target="_blank" :href="item" :underline="false" v-for="(item, index) in data">{{ '文件' + (index + 1) }}&nbsp;</el-link>  
  </div>
</template>
<script>
export default {
  props: {
    value: {
      type: String,
      required: true
    },
  },
  computed: {
    data() {
      if (this.value) {
        return this.value.split(',');  
      } else {
        return [];
      }
    }
  },
  data () {
  	return {
  	}
  },
  mounted () {
    console.log(this.value)
  },
  methods: {
  }
}
</script>